Big Query SQL syntax error using the WITH clause